package com.wu.mongo;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.List;

@Data
@Document("featured_data")
 public  class FeaturedData <T> {
    @Id
    private ObjectId id;
    private Integer resType;
    // json格式存储
    private List<T> info;
    private Date createTime;
}
